package com.hxh.demo.service;

import com.hxh.demo.entity.Userinfo;
import com.hxh.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/7/6 21:37
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public Userinfo getUserById(Integer id) {
        return userMapper.getUserById(id);
    }
}
